package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface CategoryService {
    void save(Category category);

    Page<Category> findByPage(Integer page, Integer pageSize);

    void deleteById(Long id);

    /*
        修改类别
     */
    void update(Category category);

    List<Category> findAll();

    List<Category> list(Integer type);
}
